<div class="block block-{{ data.contentModel }} block-hi" id="{{ data.getId() }}">
    {% if data.name is defined AND data.displayTitle is defined AND data.displayTitle %}<p class="block-title">{{ data.name }}</p>{% endif %}
    {% if data.body is defined %}
        <p class="block-body">{{ data.body }}</p>
    {% endif %}

    <div class="action-buttons">
        <a target="blank" class="btn btn-info"
           href="http://shang.qq.com/wpa/qunwpa?idkey=f4a6ffb4b6e624cdc509673609a2f054256425853cb3da0de18804587f310d2d">加入交流QQ群</a>
        {% if user.isLogin() %}
            <a class="btn btn-default" href="{{ url(['for':'userCenterIndex']) }}">用户中心</a>
        {% else %}
            <a class="btn btn-default" ajax-model="{{ url(['for':'login']) }}?rd={{ url }}" href="{{ url(['for':'login']) }}?rd={{ url }}">登录/注册</a>
        {% endif %}
    </div>
</div>